@extends('layouts.information')

@section('title','修改密码')

@section('content')
    <h1>
        {{ $user->email }}
    </h1>
    <div class="panel-body">
        {!! Form::model($user) !!}
        <div class="form-group">
            {!! Form::label('name',trans('validation.attributes.name')) !!}
            {!! Form::text('name',null,['class'=>'form-control']) !!}
        </div>
        <div class="form-group">
            {!! Form::label('mobile',trans('validation.attributes.mobile')) !!}
            {!! Form::text('mobile',null,['class'=>'form-control']) !!}
        </div>
        <div class="form-group">
            {!! Form::label('phone',trans('validation.attributes.phone')) !!}
            {!! Form::text('phone',null,['class'=>'form-control']) !!}
        </div>
        <div class="form-group">
            {!! Form::label('sex',trans('validation.attributes.sex')) !!}
            {!! Form::radio('sex','男',['class'=>'form-control']) !!}男
            {!! Form::radio('sex','女',['class'=>'form-control']) !!}女
        </div>
        {!! Form::submit('提交') !!}
        {!! Form::close() !!}
    </div>
@endsection

@section('scripts')
    @if ($errors->any())
        <script>
            alert('{{ current($errors->all()) }}');
        </script>
    @endif
@endsection




